package com.xyzwps.ewa.modules.auth.session

import com.xyzwps.ewa.modules.user.UserId
import java.time.LocalDateTime

data class Session(val userId: UserId, val sessionId: String, val start: LocalDateTime, val end: LocalDateTime) {
    val isExpired get() = end < LocalDateTime.now()
}